<?php
    if ($printType == 2) {
        $type = 1;
    } elseif ($printType == 3) {
        $type = 0;
    }
?>
@foreach( $datas as $data)
    <?php
        if ($printType == 1) {
            $type = $data->typeId;
            $url = $data->url;
        } elseif ($printType == 2) {
            $url = '/pictureDetail/'.$data->id.'.html';
        } elseif ($printType == 3) {
            $url = '/storyDetail/'.$data->id.'.html';
        }
    ?>
    <div class="col-lg-12 col-md-12 col-xs-12 item_article">
        <div class="col-lg-12 col-md-12 col-xs-12 item_content">
            <a href="{{ $data->url }}" class="picture_txt" style="color:black">
                @if( $type==0 )
                    @if($data->imgType==0)
                        <a class="col-md-12 col-xs-12 col-sm-12">
                            <a href="{{ $url }}" style="color:black">
                                <div class="col-md-12 col-xs-12 sleepan_article_item_title">
                                    {!!  $data->title !!}
                                </div>
                                <div class="col-md-12 col-xs-12 sleepan_article_item_des">
                                    {!! $data->description !!}
                                </div>
                            </a>
                        </a>
                    @elseif($data->imgType==1)
                        <div class="col-md-3 col-xs-3 col-sm-3" style="margin-top:10px;margin-bottom:10px;">
                            <img class="img_lazy" src="{{ asset($data->imgurl) }}" alt="{!! $data->description !!}" style="width:100%;height:100px;overflow:hidden"/>
                        </div>
                        <div class="col-md-9 col-xs-9 col-sm-9 item_content">
                            <a href="{{ $url }}" style="color:black">
                                <div class="col-md-12 col-xs-12 sleepan_article_item_title">
                                    {!! $data->title !!}
                                </div>
                                <div class="col-md-12 col-xs-12 sleepan_article_item_des"  >
                                    {!! $data->description !!}
                                </div>
                            </a>
                        </div>
                    @endif
                @elseif( $type==1 )
                    <a href="{{ $url }}" class="picture_txt" style="color:black">
                        <div class="col-md-12 col-xs-12 sleepan_article_item_title">{!! $data->description !!}</div>
                        <div class="col-lg-12 col-md-12 col-xs-12" style="margin-top:10px;">
                            <img class="img_lazy" src="{{ $data->imgurl }}" style="max-width: 100%;" alt="{!! $data->description !!}"/>
                        </div>
                    </a>
                @endif
                    <div class="col-lg-12 col-md-12 col-xs-12 item_img">
                        <div style="float:left;margin-top:5px;margin-left:15px;padding-bottom: 10px;">
                            <div class="praise_first">
                                {{ $data->praise }} 点赞
                            </div>
                            <div class="praise_point">
                            </div>
                            <div class="praise_second">
                                <a href="#" style="color:#999999" id="comment">{{ $data->browse }} 浏览</a>
                            </div>
                        </div>
                    </div>
            </a>
        </div>
    </div>
@endforeach